package com.example.group_20.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.group_20.entity.Category;
import com.example.group_20.entity.Students;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: 栋
 * @data: 2023/8/18
 * @descriptions:
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    @Select("select * from category where id=#{id}")
    public Category findByid(int id);

    @Select("select * from category ")
    public List<Category> findAll();


}
